import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'

import CustomNavSqXcx from "@/components/custom-nav-sq-xcx";
Vue.component('custom-nav-sq-xcx',CustomNavSqXcx);

// import SqScreenArea from "@/components/sq-screen-area";
// Vue.component('sq-screen-area',SqScreenArea);
import util from './common/util.js'
Vue.prototype.util = util
import reqUrl from "./common/reqUrl"
Vue.prototype.serverUrl = reqUrl
Vue.prototype.staticDir = reqUrl + '/images/pssSq/';
//https://test-1309823386.cos.ap-beijing.myqcloud.com/sqSys/sqBbs/1708744782966_427575.png
Vue.prototype.cloudUrl = process.env.NODE_ENV === 'development' ? 'https://test-1309823386.cos.ap-beijing.myqcloud.com/' : 'https://hxy2022-1309823386.cos.ap-beijing.myqcloud.com/'
Vue.prototype.defHead = 'https://hxy2022-1309823386.cos.ap-beijing.myqcloud.com/userHead/default_head.png';
Vue.prototype.getStaticFilePath = function(url){
	return Vue.prototype.staticDir + url
}
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif